<?php

namespace App\Http\Controllers\Api;

use App;
use Illuminate\Http\Request;
use App\Http\Controllers\Controller;
use App\Model\TimeLine;

class TimelineController extends Controller
{
    //数据
    public function index(Request $request)
    {
        $count=TimeLine::count();
        $key=$request->input('key');
        $page=$request->input('page');
        $limit=$request->input('limit');
        $model=new TimeLine();
        $pagine= pagine($model,$page,$limit,$key,$count);
        $data=$pagine->get();
       return table_return('0','获取成功',$count,$data);
    }
}
